package com.shmn.gongjiajumain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shmn.common.utils.PageUtils;
import com.shmn.common.utils.Query;

import com.shmn.gongjiajumain.dao.MaintenanceTypeDao;
import com.shmn.gongjiajumain.entity.MaintenanceTypeEntity;
import com.shmn.gongjiajumain.service.MaintenanceTypeService;


@Service("maintenanceTypeService")
public class MaintenanceTypeServiceImpl extends ServiceImpl<MaintenanceTypeDao, MaintenanceTypeEntity> implements MaintenanceTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MaintenanceTypeEntity> page = this.page(
                new Query<MaintenanceTypeEntity>().getPage(params),
                new QueryWrapper<MaintenanceTypeEntity>()
        );

        return new PageUtils(page);
    }

}